/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package client;

import itf.MyInterface;
import java.net.MalformedURLException;
import java.rmi.Naming;
import java.rmi.NotBoundException;
import java.rmi.RemoteException;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author Tuyen
 */
public class ClientClass {
    public static void main(String[] args) {
        try {
            MyInterface mi= (MyInterface) Naming.lookup("rmi://localhost:1433/myRMI");
            System.out.println(mi.inra("Day la du lieu tu client0109"));
        } catch (NotBoundException | MalformedURLException | RemoteException ex) {
            Logger.getLogger(ClientClass.class.getName()).log(Level.SEVERE, null, ex);
        }
    }
}
